//
//  CAnAlgRealMeasure.h
//
//
//  Created by  on 2024/9/4.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, REALTIME_STATUS) {
    REALTIME_STATUS_NO_MEASURE = 0x00,
    REALTIME_STATUS_MEASURING = 0x01,
    REALTIME_STATUS_DATA_USEFUL = 0x02,
};

NS_ASSUME_NONNULL_BEGIN

@interface CAnAlgRealMeasure : NSObject

@property(strong, nonatomic, readonly) NSNumber* spo2;

@property(strong, nonatomic, readonly) NSNumber* heartRate;
@property(strong, nonatomic, readonly) NSNumber* hrv;

@property(assign, nonatomic, readonly) REALTIME_STATUS dataStatus;

@property(assign, nonatomic, readonly) uint16_t motion;

/*hrQualityIndexValue :Heart rate quality index value: Range 1-100, when the value is 40 or above, it means the heart rate is accurate.
( 心率质量指标值(Quality index value): 范围 1-100，当该值为 40 或 40 以上时表示心率准确) */
@property(assign, nonatomic, readonly) uint8_t hrQualityIndexValue;

@property(strong, nonatomic, readonly) NSNumber* respirationRate;

@property(strong, nonatomic, readonly)NSNumber* ibi;

@property(strong, nonatomic, readonly)NSNumber * stress;

@property(strong, nonatomic, readonly)NSNumber *cardiacCoherence; //心脏连贯性 实际值范围

@property(assign, nonatomic, readonly)float spo2RValue; 

- (instancetype)initWithData:(NSData *)data;

@end

NS_ASSUME_NONNULL_END
